package cn.com.controller;

import cn.com.Authorization;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.support.SessionStatus;

@Controller
public class HomeContorller {
    @GetMapping("/")
    @Authorization(url = "/",authority = "r" )
    public String home() {
        return "first";
    }




    @GetMapping("/logout")
    public String logout(SessionStatus status){
        status.setComplete();
        return "login2";
    }
}

